package cn.gzjp.modules.rice.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.rice.entity.RiceOrderDetail;
import cn.gzjp.modules.rice.dao.RiceOrderDetailDao;

/**
 * 订单详情Service
 * @author zengcp
 * @version 2018-11-17
 */
@Service
@Transactional(readOnly = true)
public class RiceOrderDetailService extends CrudService<RiceOrderDetailDao, RiceOrderDetail> {

	public RiceOrderDetail get(String id) {
		return super.get(id);
	}
	
	public List<RiceOrderDetail> findList(RiceOrderDetail riceOrderDetail) {
		return super.findList(riceOrderDetail);
	}
	
	public Page<RiceOrderDetail> findPage(Page<RiceOrderDetail> page, RiceOrderDetail riceOrderDetail) {
		return super.findPage(page, riceOrderDetail);
	}
	
	@Transactional(readOnly = false)
	public void save(RiceOrderDetail riceOrderDetail) {
		super.save(riceOrderDetail);
	}
	
	@Transactional(readOnly = false)
	public void delete(RiceOrderDetail riceOrderDetail) {
		super.deleteByLogic(riceOrderDetail);
	}
	
}